package data;

import android.graphics.Matrix;
import android.graphics.Path;

/**
 * @author 	luhongzhe
 * @email  	azhe0660@gmail.com
 * @date   	2011-10-13
 */

public class ObjectPath
{
	public Path[] paths;
	public int[] strokeColors;
	public int[] fillColors;
	public int size;
	
	public ObjectPath()
	{
		
	}
	
	public void initSize(int size)
	{
		this.size = size;
		this.paths = new Path[size];
		this.strokeColors = new int[size];
		this.fillColors = new int[size];
	}
	
	public ObjectPath transform(Matrix matrix)
	{
		ObjectPath dst = new ObjectPath();
		dst.initSize(size);
		for (int i = 0; i < size ; i++)
		{
			dst.fillColors[i] = fillColors[i];
			dst.strokeColors[i] = strokeColors[i];
			Path childPath = new Path();
			this.paths[i].transform(matrix, childPath);
			dst.paths[i] = childPath;
		}
		return dst;
	}
}
